#ifndef _XPT2046_H_
#define _XPT2046_H_

#include <reg52.h>
#include <intrins.h>

#ifndef uchar
#define uchar unsigned char
#endif

#ifndef uint
#define uint unsigned int
#endif

sbit DOUT =P3^7;
sbit CLK =P3^6;
sbit DIN =P3^4;
sbit CS =P3^5;

uint SPI_Read();
uint Read_AD_Data(uchar cmd);

#endif